ImageSource

data class ImageSource(val imagePath: String? = null, val imageContentProviderUrl: String? = null, val imageByteArray: ByteArray? = null) : Parcelable

A data class that holds the info for the image source. If more than 1 image source defined, then the first defined image source in this data class will be taken.

Constructors

Link copied to clipboard
constructor(imagePath: String? = null, imageContentProviderUrl: String? = null, imageByteArray: ByteArray? = null)

Properties

Link copied to clipboard

This is the bytearray content of the image to be passed.

Link copied to clipboard

This is the uri to the content provider that provides the image.

Link copied to clipboard
val imagePath: String? = null

This is the path to the image on the device. -> Be aware that permission for reading the imagePath from the storage is needed.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)